package org.xukai.spark.dataframe.java;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.spark.sql.api.java.UDF1;

/**
 * @author xukai
 * @desc
 * @date 2018-09-05-17:31
 */
public class MyUdf extends UDF {

    public Object evaluate(Object o) throws Exception {
        return String.valueOf(o).toUpperCase();
    }

    public static void main(String[] args) {
        System.out.println("xcx");
    }
}
